import request from '@/utils/request'

// 查询视频搜索排序枚举
export function querySearchSortTypes() {
    return request({
        url: '/es/search-video-sort-enum',
        method: 'get'
    })
}

// 查询视频搜索长度分类枚举
export function querySearchVideoTimeTypes() {
    return request({
        url: '/es/search-video-time-type-enum',
        method: 'get'
    })
}

// 搜索视频
export function searchVideo(data) {
    return request({
        url: '/es/search-video',
        method: 'post',
        data: data
    })
}

// 搜索用户
export function searchUser(data) {
    return request({
        url: '/es/search-user',
        method: 'post',
        data: data
    })
}

// 视频搜索条件
export function getSearchVideoCondition() {
    return request({
        url: '/es/search-video-condition',
        method: 'get'
    })
}